<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${msg}"></p>
<div th:object="${user}">
    姓名<span th:text="*{name}"></span>
    年龄<span th:text="*{age}"></span>
    性别<span th:text="*{gender}"></span>
</div>
<p th:if="${#lists.isEmpty(list)}">数组不为空</p>
<p th:if="!${#lists.isEmpty(list)}">数组不为空</p>

<p th:each="item:${list}" th:text="${item}"></p>

</body>
</html>
